package com.wumz.spring.write.v2.framework.webmvc;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**
 * Created by wumz on 2020/9/29 11:18
 */
public class MyHandlerMapping {
    private Pattern pattern; //url 正则

    private Method method; //对应的Method

    private Object controller;

    public MyHandlerMapping(Pattern pattern, Method method, Object controller) {
        this.pattern = pattern;
        this.method = method;
        this.controller = controller;
    }

    public Pattern getPattern() {
        return pattern;
    }

    public void setPattern(Pattern pattern) {
        this.pattern = pattern;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object getController() {
        return controller;
    }

    public void setController(Object controller) {
        this.controller = controller;
    }
}
